import pymupdf # imports the pymupdf library
# doc = pymupdf.open("..\\明觉员工手册（2024年11月第二版）.pdf") # open a document
doc = pymupdf.open("../gptpdf-demo/demo.pdf") # open a document
for page in doc: # iterate the document pages
  # text = page.get_text() # get plain text encoded as UTF-8
  img_list = page.get_images()
  # print(text)
  print(page)
  for img in img_list:
    print(img)

